package com.company;


import java.util.Scanner;

public class Main {

    public static void main33(String[] args) {
        Date date = new Date();
        date.print();


    }


    public static void main(String[] args) {


        int a=2;
        int b=3;
        int c=4;
        int max=max(a,b);
        int max2=max(a,b,c);
        System.out.println(max);
        System.out.println(max2);
        int add=add(a,b);
        double add2=add(a,b,c);
        System.out.println(add);
        System.out.println(add2);
    }
    public static int fac(int n){
        int ret=1;
        for (int i = 0; i <n; i++) {
            ret*=i;

        }
        return ret;
    }
    public static void single(int[]arr){
        for (int i = 0; i <arr.length-1; i++) {
            for (int j = arr.length - 1; j >= 0; j--) {
                if (i < j && arr[i] % 2 == 0) {
                    int tmp = arr[i];
                    arr[i] = arr[j];
                    arr[j] = tmp;

                }

            }
        }
    }
    public static int max(int a,int b){
        return a>b?a:b;
    }

    public static int max(int a,int b,int c){
        int m=Math.max(a,b);
        return Math.max(m,c);

    }
    public static int add(int a,int b){
        return a+b;
    }
    public static double add(double a,double b,double c){
        return a+b+c;
    }
    public static int gua(int n){
        if(n==1) {
            return 1;
        }
            if (n==2){
            return 2;
        }
            else
                return  gua(n-1)+gua(n-2);
    }
}
